package com.yjt.javatest.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yjt.javatest.entity.QuestionTestLib;
import com.yjt.javatest.entity.TestLib;
import com.yjt.javatest.utils.APIResponse;

public interface TestLibService extends IService<TestLib> {
    APIResponse getTestLibById(Long id);

    APIResponse createTestLib(TestLib testLib);

    APIResponse getTestLibsByUserId();

    APIResponse updateTestLib(TestLib testLib);


    APIResponse moveQuestionOrder(Long testLibId, Long questionId, Integer dir);

    APIResponse deleteQuestionFromTestLib(Long questionId, Long testLibId);

    APIResponse deleteTestLib(Long testLibId);



    APIResponse addQuestionToTestLib(QuestionTestLib questionInfo);

    APIResponse getQuestionIdsByTestLibId(Long testLibId);

    APIResponse getQuestionListByTestLibId(Long testLibId);
}
